package com.mililoan.common.exception;

/**
 * 
 * @ClassName: BusinessException
 * @Description: 业务异常处理类
 * @author YangChaofeng 2016年4月29日 下午2:17:55
 */
public class BusinessException extends Exception {

	private static final long	serialVersionUID	= 999542116963997441L;

	private String				exceptionCode;
	private String				message;

	public BusinessException() {

	}

	public BusinessException(String exceptionCode, String detailMsg) {
		super();
		this.exceptionCode = exceptionCode;
		this.message = detailMsg;
	}

	public BusinessException(String exceptionCode) {
		super();
		this.exceptionCode = exceptionCode;
		this.message = "没有具体的异常信息";
	}

	public String toString() {
		return "异常编码[" + getExceptionCode() + "] 描述：" + getMessage();
	}

	public String getExceptionCode() {
		return exceptionCode;
	}

	@Override
	public String getMessage() {
		return this.message;
	}

}
